Repository navigation
fix(iceberg): advertise supported endpoints in /v1/config - #1775
Merged
TylerHillery merged 5 commits intoDec 4, 2026
Merged
Conversation
Coverage Report for CI Build 47403419003Coverage remained the same at 88.883%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
Contributor
|
@md1qamar thanks for your contribution. I had a few minor nits that I went ahead and took care of myself so I could merge this right away (will do once CI passes). You'll still get the attribution once it's merged. (Removed the upstream |
TylerHillery
approved these changes
Dec 4, 2026
ferhatelmas
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1762.
SUPPORTED_ICEBERG_ENDPOINTSand returnendpointsinTenantAwareRestCatalog.getConfig(src/storage/protocols/iceberg/catalog/tenant-catalog.ts):GET /v1/confignow advertises the exact 11 namespace and table routes implemented undersrc/http/routes/iceberg/(namespace.tsandtable.ts), excluding unimplemented operations (POST /v1/{prefix}/namespaces/{namespace}/properties,POST /v1/{prefix}/tables/rename,POST /v1/{prefix}/namespaces/{namespace}/register) so clients such aspyicebergfail fast withNotImplementedErrorinstead of issuing doomed requests.endpointsinRestCatalogClient.getConfig(src/storage/protocols/iceberg/catalog/rest-catalog-client.ts): When the upstream catalog returns anendpointsarray, forward a shallow copy alongsidedefaultsandoverrides(while continuing to omitendpointswhen upstream omits it).tenant-catalog.test.ts,rest-catalog-client.test.ts): Added unit tests coveringSUPPORTED_ICEBERG_ENDPOINTS, exclusion of unsupported routes, immutability of the exported constant, and preserving vs. omittingendpointsinRestCatalogClient.getConfig.Verification
npx tsc --noEmit— passed (0 errors)npx biome linton the 4 modified files — passed (0 errors)npx vitest run --config vitest.unit.config.ts --maxWorkers=1 src/storage/protocols/iceberg/catalog/tenant-catalog.test.ts src/storage/protocols/iceberg/catalog/rest-catalog-client.test.ts src/storage/protocols/iceberg/catalog/rest-catalog-client.contract.test.ts src/storage/protocols/iceberg/catalog/reconciler.test.ts src/storage/protocols/iceberg/catalog/reclaim-shard-slots.test.ts— 5 test files passed, 137 / 137 tests passed